<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CRM服务管理平台</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/default/generic/frame/global.css" type="text/css" type="text/css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/default/generic/frame/index.css" type="text/css" type="text/css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/default/generic/frame/menu.css" type="text/css" type="text/css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/js/default/generic/frame/kandtabs/kandytabs.css" type="text/css" /> 
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/default/generic/frame/lanrenzhijia.css" type="text/css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/js/default/common/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/default/generic/frame/kandtabs/kandytabs.pack.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/default/generic/frame/easing.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/default/generic/frame/autoheight.js"></script>
 <!--[if lt IE 7]>       
 <script src="js/fixPNG.js"></script>         
 <script>
 DD_belatedPNG.fix('img,span');
 </script>     
<![endif]-->

 <script type="text/javascript">
    var tab,index=0;
    $(function() {
    	    //获取tab,具体用法查看http://demo.jgpy.cn/
		    tab=$("#slide").KandyTabs({
		    del:true,
		    scroll:true,
		    trigger:'click',
		    custom:function(b,c,i){
				$("p",c).fadeOut();
				c.eq(i).find("p").slideDown(1500);
				index=i;
			},
		    done: function(btn,cont,tab){
		    	$("#slide .tabbtn").each(function(i)
		    	{
		    	if($(this).text().indexOf("我的桌面")>-1)//如果当前选项卡是我的桌面
		    	{
				$(this).css({"background":"#027be4","border-bottom":"1px solid #027be4","font-weight":"bold","color":"#ffffff"});//修改选项景色
		        $(this).find('.tabdel').text("");//	去除关闭按钮
		        $("#centerFrame").attr("src","toCenter.action");
		    	}	
		    	});
				setIframeH();//前台设定IFRAME高度 最好在在登录时把高度获取存放到session供其他IFRAME使用
		    }
          });
	});
	//数据加密

function encode64(input) {
	var keyStr = "ABCDEFGHIJKLMNOP" +
             "QRSTUVWXYZabcdef" +
             "ghijklmnopqrstuv" +
             "wxyz0123456789+/" +
             "=";
   input = escape(input);
   var output = "";
   var chr1, chr2, chr3 = "";
   var enc1, enc2, enc3, enc4 = "";
   var i = 0;

   do {
      chr1 = input.charCodeAt(i++);
      chr2 = input.charCodeAt(i++);
      chr3 = input.charCodeAt(i++);

      enc1 = chr1 >> 2;
      enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
      enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
      enc4 = chr3 & 63;

      if (isNaN(chr2)) {
         enc3 = enc4 = 64;
      } else if (isNaN(chr3)) {
         enc4 = 64;
      }

      output = output + 
         keyStr.charAt(enc1) + 
         keyStr.charAt(enc2) + 
         keyStr.charAt(enc3) + 
         keyStr.charAt(enc4);
      chr1 = chr2 = chr3 = "";
      enc1 = enc2 = enc3 = enc4 = "";
   } while (i < input.length);

   return output;
}
	
</script>
</head>

<body style="overflow: hidden;" scroll="no">
<!-- header -->
<div class="header" region="north" border="true" >
<div class="logo fleft"><img src="${pageContext.request.contextPath}/images/default/generic/frame/logo.png" width="344" height="49" /></div>
<div class="header_right">
<ul>
  <li><a href="#" title="首页" id="home"></a></li>
  <li><a href="#" title="更换皮肤" id="theme"></a></li>
  <li><a href="#" title="设置" id="Setup"></a></li>
  <li><a href="#" title="刷新" id="refresh"></a></li>
  <li><a href="#" title="注销登录" id="logout"></a></li>
</ul>
</div>
</div>
   
 <dl id="slide" >
  <dt>我的桌面</dt>
    <dd><iframe id=centerFrame name="centerFrame" class="centerFrame" frameborder="0" style="width: 100%;height 110px overflow-x: hidden; overflow-y:auto" noresize="noresize" scrolling="auto"></iframe></dd>  
 </dl>
  
  <!--
  <div class="easyui-tabs" fit="true" border="false" id="tabs">
			<div title="我的桌面"> 
				<iframe id=centerFrame name="centerFrame" class="centerFrame" frameborder="0" style="width: 100%;height 110px overflow-x: hidden; overflow-y:auto" noresize="noresize" scrolling="auto" src="toCenter.action"></iframe>
			</div>
 </div>
 -->
<div id="tt" class="easyui-tabs">
<div id="footer" region="south" border="false" class="cs-south">
<!-- 菜单 -->
<div class="menu" style="z-index:99999; position:absolute;">
<ul>
<li><a class="hide" href="#"><img src="${pageContext.request.contextPath}/images/default/generic/frame/menu.jpg" width="66" height="31" /></a>
<!--[if lte IE 6]>
<a href="#"><img src="images/menu.jpg" width="66" height="31" />
<table><tr><td>
<![endif]-->
    <ul  class="category" style="width:321px; background:url(${pageContext.request.contextPath}/images/default/generic/frame/menu_bg.jpg) repeat-y; padding-top:10px; border:2px solid #0059a5; border-bottom:none; min-height: 400px;"">
    <div class="people blue"><span><img src="${pageContext.request.contextPath}/images/default/generic/frame/people.jpg" title="照片" width="29" height="29" /></span><strong>${name}</strong></div>
    ${menuResource}
    <!-- 
    <div class="out_quit"><a href="#" title="注销" class="logout">注销</a><a href="#" title="退出" class="quit">退出</a></div>
     -->
    </ul>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
</ul>
</div>
    <!-- -->
    <div class="footer_right"><span class="number">今天登陆<strong>1</strong>人</span>
     <a href="#" class="tixing"><img src="${pageContext.request.contextPath}/images/default/generic/frame/tixing.png" width="16" height="16" /></a>
     <a href="#" class="xiaoxi"><img src="${pageContext.request.contextPath}/images/default/generic/frame/youjian.png" width="20" height="13" /></a>
     <a href="#" class="liaotian"><img src="${pageContext.request.contextPath}/images/default/generic/frame/liaotian.png" width="27" height="19" /></a>
    </div>
    <div class="clear"></div>
  </div>
</body>
</html>
